﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sinacor.Infra.UI.Common;

namespace Sinacor.UI.Bovespa.Ordens.Model
{
    [Serializable]
    public class Motivo:BaseModel
    {
      
        #region Construtor

        /// <summary>
        /// Construtor padrão
        /// </summary>
        public Motivo()
        { }

        /// <summary>
        /// Construtor
        /// </summary>
        /// <param name="Codigo"></param>
        /// <param name="Descricao"></param>
        public Motivo(int Codigo, string Descricao)
        {
            _codigo = Codigo;
            _descricao = Descricao;
        }

        #endregion 

        #region Campos 

        private int? _codigo;
        private string _descricao;

        #endregion

        #region Descricao

        /// <summary>
        /// Codigo
        /// </summary>
        public int? Codigo
        {
            get { return _codigo; }
            set { _codigo = value; this.OnPropertyChanged("Codigo"); }
        }

        /// <summary>
        /// Descricao
        /// </summary>
        public string Descricao
        {
            get { return _descricao; }
            set { _descricao = value; this.OnPropertyChanged("Descricao"); }
        }

        #endregion 
    }
}
